﻿using System.IO;
using log4net.ObjectRenderer;
using Minnow.Web;

namespace MinnowConsole
{
    class ResponseRenderer : IObjectRenderer 
    {
        #region IObjectRenderer Members

        public void RenderObject(RendererMap rendererMap, object obj, TextWriter writer)
        {
            ResponseEventArgs response = (ResponseEventArgs)obj;
            writer.Write(string.Format("{0} [{1}]", response.Request.Url.AbsolutePath, response.Response.StatusCode));
        }

        #endregion
    }
}
